<div class="scrollbox">
  <table>
    <thead>
      <tr>
        <th class="stul-head">头像</th>
        <th class="stul-name">姓名</th>
        <th class="stul-type">消费类型</th>
        <th class="stul-adviser">服务顾问</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @students.each do |student| %>
        <tr>
          <td>
            <div class="as-imgbox">
              <img src="" alt="">
            </div>
          </td>
          <td class="stul-name">
            <span><%= student.name %></span>
            <% if student.is_expire %>
              <div>
                <em>即将到期</em>
              </div>
            <%end%>
          </td>
          <td>年卡</td>
          <td><%= student.service_employee.name if student.service_employee_id %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", admin_student_path(student) %></em>
            <span>]</span>
            <span>[</span>
            <em>消费记录</em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "评价信息", admin_student_student_remarks_path(student) %></em>
            <span>]</span>	
          </td>
        </tr>
      <%end%>
    </tbody>
  </table>
  <div class="apple_pagination" >
    <%= paginate @students, :container => false %>
  </div>
</div>
